import request from "@/utils/request"

/**查询客户列表 */
export function listCustomer(params) {
  return request({
    url: "/zk/customer/list",
    method: "get",
    params:params
  })
}

/**新增客户 */
export function addCustomer (data) { 
  return request({
    url: "/zk/customer",
    method: "post",
    data:data
  })
}

/**根据num获取客户 */
export function getCustomerByNum (num) { 
  return request({
    url: "/zk/customer/" + num,
    method:"get"
  })
}

/**修改客户 */
export function updateCustomer (data) { 
  return request({
    url: "/zk/customer/",
    method: "put",
    data:data
  })
}

/**删除客户 */
export function delCustomer (ids) { 
  return request({
    url: "/zk/customer/" + ids,
    method: "delete",
  });
}